﻿#ifndef MYCOMBOBOX_H
#define MYCOMBOBOX_H

#include <QComboBox>
#include <QMouseEvent>
#include <QtSerialPort>
#include <QSerialPortInfo>

class mycomboBox : public QComboBox
{
public:
    explicit mycomboBox(QWidget *parent = nullptr);
    // 重写鼠标点击事件
    void mousePressEvent(QMouseEvent *event);

private:
    void scanActivePort();
};

#endif // MYCOMBOBOX_H
